package com.hk.service.impl;

import com.hk.dao.NavDao;
import com.hk.model.Nav;
import com.hk.service.INavService;

import java.util.List;

/**
 * @Author: KangWang
 * Date: 2021/5/17 10:19
 * State：导航栏业务逻辑层
 */
public class NavServiceImpl implements INavService {

    @Override
    public List<Nav> findAllNav() {
        NavDao navDao = new NavDao();
        List<Nav> navs = navDao.findAllNav();
        if (navs == null && navs.isEmpty()) {
            System.out.println("没有数据");
            return null;
        }
        return navs;
    }

}